package com.zhiyou100.action01;

import org.springframework.web.HttpRequestHandler;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author yang
 */
public class Demo03Action implements HttpRequestHandler {
    @Override
    public void handleRequest(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("Demo03Action----");
        req.setAttribute("message", "Demo03Action");
        req.getRequestDispatcher("/test01/success.jsp").forward(req, resp);
    }
}
